package service;

import java.util.List;

import pojo.Obtain;
import pojo.Page;

public interface ObtainServiceI {

	
	//查看用户是否进行了获取下载权限
	public boolean ObtainOrNot(Integer userId,Integer essayId);
	
	//插入用户权限
	public boolean InsertObtain(Obtain obtain);
	
	//查询用户获取下载权限的文章
	public List<Integer> FindEssay(Integer userId, Page page);

	//查询用户获取下载权限的文章数量
	public Integer FindEssayCount(Integer userId);

}
